<template>
    <div class="navbar">
        <div class="navabr-satrt">
            <a href="/home">
                <img class="logo" src="@/images/avatar.jpeg" alt="" />
            </a>
            <span class="blog-name">Zengin Blog</span>
        </div>
        <div class="navabr-center">
            <nav class="nav-link">
                <div class="nav-item">
                    <a href="">
                        <i class="bi bi-house-door-fill"></i>
                        <span>主页</span>
                    </a>
                </div>
                <div class="nav-item">
                    <a href="">
                        <i class="bi bi-journal-text"></i>
                        <span>随笔</span>
                    </a>
                </div>
                <div class="nav-item">
                    <a href="">
                        <i class="bi bi-journal-code"></i>
                        <span>代码笔记</span>
                    </a>
                </div>
                <div class="nav-item">
                    <a href="">
                        <i class="bi bi-microsoft"></i>
                        <span>软件教程</span>
                    </a>
                </div>
            </nav>
        </div>
        <div class="navabr-end">
            <div class="change-language">
                <i class="bi bi-translate"></i>
            </div>
            <div class="change-theme">
                <i v-if="theme === 'light'" class="bi bi-sun"></i>
                <i v-else class="bi bi-moon-fill"></i>
            </div>
            <div class="search">
                <i class="bi bi-search"></i>
            </div>
        </div>
    </div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    height: 48px;
    padding: 12px;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    .navabr-satrt {
        display: flex;
        align-items: center;
        height: 100%;

        .logo {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            margin-right: 20px;
        }
        .blog-name {
            font-size: 20px;
            font-weight: bold;
        }
    }

    .navabr-center {
        .nav-link {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;

            .nav-item {
                margin: auto 15px;
                border-bottom: 2px solid #fa709a;
                a {
                    display: block;
                    line-height: 2;
                }
            }
        }
    }

    .navabr-end {
        display: flex;
        align-items: center;
        height: 100%;

        .change-language {
            margin-right: 20px;
            font-size: 20px;
            cursor: pointer;
        }

        .change-theme {
            margin-right: 20px;
            font-size: 20px;
            cursor: pointer;
        }
    }
}
</style>